// 导入拦截器
import request from '@/utils/request'

// 封装并暴露获取库区分页数据请求接口
export const getPageAreaAPI = () => {
  return request('/area/pageDetail')
}

// 封装并暴露删除仓库信息请求接口
export const delAreaAPI = (id) => {
  return request({
    url: '/area',
    method: 'delete',
    params: {
      ids: [...id]
    }
  })
}

// 封装并暴露修改仓库信息请求接口
export const updateAreaAPI = (data) => {
  return request.put('/area', data)
}
